package com.ydd.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "用户点赞或收藏操作请求参数")
public class ArticleCollectOperateDTO implements Serializable {
    @ApiModelProperty("1表示收藏操作，2表示点赞操作")
    private Integer type;
    @ApiModelProperty("文章id")
    private Long article_id;
    @ApiModelProperty("类型，add表示 点赞或收藏， del表示取消点赞或取消收藏")
    private String action;
}
